﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Dual licensed under the MIT and GPL licenses:
//  http://www.opensource.org/licenses/mit-license.php
//  http://www.gnu.org/licenses/gpl.html

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace DNA.OpenAPI.OpenSearch
{
    public enum OpenSearchQueryRoles:short
    {
        /// <summary>
        /// Represents the search query that can be performed to retrieve the same set of search results. 
        /// </summary>
        [XmlEnum("request")]
        Request=1,
        /// <summary>
        /// Represents a search query that can be performed to demonstrate the search engine. 
        /// </summary>
        [XmlEnum("example")]
        Example=2,
        /// <summary>
        /// Represents a search query that can be performed to retrieve similar but different search results. 
        /// </summary>
        [XmlEnum("related")]
        Related=3,
        /// <summary>
        /// Represents a search query that can be performed to improve the result set, such as with a spelling correction. 
        /// </summary>
        [XmlEnum("correction")]
        Correction = 4,
        /// <summary>
        /// Represents a search query that will narrow the current set of search results. 
        /// </summary>
        [XmlEnum("subset")]
        Subset=5,
        /// <summary>
        /// Represents a search query that will broaden the current set of search results. 
        /// </summary>
        [XmlEnum("superset")]
        Superset=6
    }
}
